package com.littlegnal.share2.db;

import com.littlegnal.share2.model.CourseListCollection;
import com.littlegnal.share2.model.User;

/**
 * @author littlegnal
 * @date 2017/2/22
 */

public class DbManager {

  public interface DbManagerListener {

    void onCompleted();
  }

  public void create(CourseListCollection courseListCollection) {
    // create
  }

  public void asyncCreate(CourseListCollection courseListCollection, DbManagerListener listener) {
    // async create ...
    if (listener != null) {
      listener.onCompleted();
    }
  }

  public void create(User user) {
    // create
  }

  public void asyncCreate(User user, DbManagerListener listener) {
    // async create ...
    if (listener != null) {
      listener.onCompleted();
    }
  }

  public void asyncUpdate(CourseListCollection courseListCollection, DbManagerListener listener) {
    // update ...
    if (listener != null) {
      listener.onCompleted();
    }
  }

  public void asyncDelete(CourseListCollection courseListCollection, DbManagerListener listener) {
    // delete ...
    if (listener != null) {
      listener.onCompleted();
    }
  }

}
